package com.example.demo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.service.RolePermService;
import com.example.demo.dao.RolePermMapper;
import com.example.demo.bean.RolePerm;

@Service
public class RolePermServiceImpl implements RolePermService {

	@Autowired
	private RolePermMapper rolePermMapper;

	public java.util.List<RolePerm> queryRolePermByPage (java.util.Map<String, Object> params){
		return this.rolePermMapper.selectRolePermByPage(params);
	}

	public int queryRolePermCount (java.util.Map<String, Object> params){
		return this.rolePermMapper.selectRolePermCount(params);
	}

	public RolePerm queryRolePermOne (java.util.Map<String, Object> params){
		return this.rolePermMapper.selectRolePermOne(params);
	}

	public int updateRolePerm (java.util.Map<String, Object> params){
		return this.rolePermMapper.updateRolePerm(params);
	}

	public int deleteRolePerm (java.util.List<String> idList){
		return this.rolePermMapper.deleteRolePerm(idList);
	}

	public int insertRolePerm (java.util.Map<String, Object> params){
		return this.rolePermMapper.insertRolePerm(params);
	}

}